package com.io.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.io.dao.TbStudentMapper;
import com.io.entity.one2many.Student;
import com.io.service.TbStudentService;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@Service
public class TbStudentServiceImpl implements TbStudentService {

    @Resource
    private TbStudentMapper tbStudentMapper;

    @Override
    public int deleteByPrimaryKey(Integer sid) {
        return tbStudentMapper.deleteByPrimaryKey(sid);
    }

    @Override
    public int insert(Student record) {
        return tbStudentMapper.insert(record);
    }

    @Override
    public int insertSelective(Student record) {
        return tbStudentMapper.insertSelective(record);
    }

    @Override
    public Student selectByPrimaryKey(Integer sid) {
        return tbStudentMapper.selectByPrimaryKey(sid);
    }

    @Override
    public int updateByPrimaryKeySelective(Student record) {
        return tbStudentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Student record) {
        return tbStudentMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Integer> getAge() {
        return tbStudentMapper.getAge();
    }

	@Override
	public List<Student> findByAll(Student tbStudent){
		 return tbStudentMapper.findByAll(tbStudent);
	}



}
